{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "bbfddee7",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "今日的课程\n",
      "2021/09/27 19:20:59\n",
      "好耶！不用上课，赶快睡觉！你个废人~\n",
      "😀nice！"
     ]
    }
   ],
   "source": [
    "import time  # 获取time板块。\n",
    "from datetime import datetime  # 从datetime中获取datetime板块。\n",
    "Monday = [6,13,20,27]\n",
    "Tuesday = [7,14,21,28]\n",
    "Wednesday = [8,15,22,29]\n",
    "Thursday = [9,16,23,30]\n",
    "Friday = [3,10,17,24]\n",
    "#  可以直接用数字0-5表示星期一到星期五；或者 麻烦一点 把下面用到的日期给扩列，这样代码就会被识别。\n",
    "print(\"今日的课程\")\n",
    "\n",
    "now = datetime.now()\n",
    "print(time.strftime(\"%Y/%m/%d %H:%M:%S\", time.localtime()))  # 以”年/月/日 时：分：秒“形式输出当地时间。\n",
    "\n",
    "day = datetime.today().day  # 表示今天的日期\n",
    "time = datetime.today().hour  # 表示今天日期的时间\n",
    "\n",
    "week_day = int(day)  # ①可以将一个数转化为整数【且不带参数，直接输出int（），得到的是整数0；②int接受字符串作为参数：类型转换。】\n",
    "week_time = int(time)\n",
    "\n",
    "if week_day in Monday:\n",
    "    if week_time < 12:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "    elif week_time > 12 and week_time < 18:\n",
    "        print(\"今天有一门课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！10-11节 韩语语言与文化3-202\")\n",
    "    elif week_time > 18:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "\n",
    "elif week_day in Tuesday:\n",
    "    if week_time < 12:\n",
    "        print(\"今天有两门课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！4-5节 毛概(实践)7-402\")\n",
    "    if week_time > 12 and week_time < 18:\n",
    "        print(\"今天最后一节课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！8-10节 网站运营与管理3实-304\")\n",
    "    if week_time > 18:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "\n",
    "elif week_day in Wednesday:\n",
    "    if week_time < 12:\n",
    "        print(\"今天有两门课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！3-5节 毛概(理论)9-201\")\n",
    "    if week_time > 12 and week_time < 18:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "    if week_time > 18:\n",
    "        print(\"今天最后一节课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！12-13节 大学英语10-205\")\n",
    "\n",
    "elif week_day in Thursday:\n",
    "    if week_time < 12:\n",
    "        print(\"今天有两门课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！3-5节 Python新综612\")\n",
    "    if week_time > 12 and week_time < 18:\n",
    "        print(\"今天最后一节课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！8-11节 纪录片评析4-206\")\n",
    "    if week_time > 18:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "\n",
    "elif week_day in Friday:\n",
    "    if week_time < 12:\n",
    "        print(\"今天有四门课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！1-2节 Ai软件应用 新综612\")\n",
    "        print(\" 3-4节 Ai软件应用 新综612\")\n",
    "    if week_time > 12 and week_time < 18:\n",
    "        print(\"今天最后两节课哦~麻烦带着你-该死的-想赖床的情绪-滚去上课！\")\n",
    "        print(\"别拖拉！要上课了！8-9节 大学英语10-205\")\n",
    "        print(\"别拖拉！要上课了！10-11节 太极拳 西体西\")\n",
    "    if week_time > 18:\n",
    "        print(\"好耶！不用上课，赶快睡觉！你个废人~\")\n",
    "\n",
    "else:\n",
    "    print(\"难得时刻！\")\n",
    "    print(\"终于可以好好休息了~享受下难得的周末吧！\")\n",
    "\n",
    "#coding=utf-8。Unicode码位的取值范围是0x0——0x10ffff（这是十六进制数），等于十进制数0到1114111，而“Emoji”位于0x1f300——0x1f6ff区域内。\n",
    "for i in range(0x1f600,0x1f601):\n",
    "    print(chr(i),end=\"nice！\")\n",
    "    if i%16 == 15:\n",
    "        print()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "01dd1e17",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "2af7e5a8",
   "metadata": {},
   "source": [
    "<font color=pink size=4> 发现bug：</font>\n",
    "* 当Monday = [6,13,20,27]，下面输出的条件就要是带 in 的格式 （if week_day <font color=pink size=3> in </font> Monday:）;  \n",
    "而当条件没有被扩列，就输出为带 == 的格式（if week_day <font color=pink size=3> == </font>  Monday:）;\n",
    "* 猜测——因为全文条件取得是时间的整数，所以当类似12:18可能会归类为12点导致输出内容与现实不符。\n",
    "* 还有就是后面的emoji表情包，只能固定输出，猜测——是否可以运用if else 条件进行判断输出。（应该可以吧）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6115409b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
